<form method="post" action="?module=backoffice&action=block_editDashBoard">
{t assignTo=title}Available dashboards{/t}
{include file="$MODULES_DIR/backoffice/templates/block/modal/ModalTitle.html" title=$title}

<div id="modalContent" style="height: 39px;">
    <table class="listTable">
        <tr><td colspan="2">{t}Select what you want to display on your dashboard.{/t}</td></tr>
    {assign var='iteration' value=0} 
    {foreach from=$dashboards key=moduleName item=boards name=foreachBoard}

    {assign var=mod value=$moduleName|capitalize}
    {assign var=right value="access_$mod backoffice_access$mod"}
    {hasRight rule=$right}
    <tr>
        <td>
            {t 1=$boards.0.moduleTitle}<b>%s</b> module :{/t}
        </td>
        <td>
            {foreach from=$boards item=board}
            <ul>
                <li><input type="checkbox" name="board[]" value ="{$moduleName}_{$board.title}" {if isset($checkeddashboards[$iteration])}{$checkeddashboards[$iteration]}{/if}/>{$board.description}</li>
            </ul>
            {assign var='iteration' value=$iteration+1}
            {/foreach}
        </td>

    </tr>
    {/hasRight}
    {/foreach}

    </table>

</div>


{include file="$MODULES_DIR/backoffice/templates/block/modal/ModalFooter.html"}
</form>